package com.sky.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "用户信息")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //微信用户唯一标识
    @ApiModelProperty(value = "微信用户唯一标识", required = true)
    private String openid;

    //姓名
    @ApiModelProperty(value = "姓名", required = true)
    private String name;

    //手机号
    @ApiModelProperty(value = "手机号", required = true)
    private String phone;

    //性别 0 女 1 男
    @ApiModelProperty(value = "性别 0 女 1 男", required = true)
    private String sex;

    //身份证号
    @ApiModelProperty(value = "身份证号", required = true)
    private String idNumber;

    //头像
    @ApiModelProperty(value = "头像", required = true)
    private String avatar;

    //注册时间
    @ApiModelProperty(value = "注册时间", required = true)
    private LocalDateTime createTime;
}
